package com.ktjy.example.example01To02.service.impl;

import com.ktjy.example.example01To02.dao.PetDao;
import com.ktjy.example.example01To02.dao.impl.PetDaoMySqlImpl;
import com.ktjy.example.example01To02.entity.Pet;
import com.ktjy.example.example01To02.service.PetService;

public class PetServiceImpl implements PetService {
    PetDao petDao = new PetDaoMySqlImpl();

    @Override
    public boolean save(Pet pet) {
        return petDao.insertPet(pet) > 0;
    }
}
